package com.hackerrank.challenges.halloweenparty;

import java.util.Scanner;

public class Solution {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int T = in.nextInt();
		for(int t = 0; t < T; t++) {
			long K = in.nextInt(), H = K / 2;
			System.out.println(H * (K - H));
		}
	}
}
